<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>添加站内文章</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  
    {include file="public/css"}
    {include file="public/js"}
</head>
<body>
<!-- 后台面包屑导航 -->
{:get_admin_breadcrumb()}
<blockquote class="layui-elem-quote" style="margin-top:10px;">说明：站内文章</blockquote>

<div class=""  style="padding:20px">

<form class="layui-form" action="" method="post" >

               <div class="layui-form-item">
                <label class="layui-form-label" style="width:100px;"> 分类</label>
                {:get_cate('info_category')}
              </div>

              <div class="layui-form-item">
                <label class="layui-form-label" style="width:100px;"> 标题</label>
                <div class="layui-input-inline" style="width:500px">
                  <input type="text" name="title" lay-verify="title" autocomplete="off" placeholder="" class="layui-input"  value="">
                </div>
                 <div class="layui-form-mid layui-word-aux"><span class="orange">*</span> 必填</div>
              </div>
 


              <div class="layui-form-item">
                <label class="layui-form-label" style="width:100px;"> 内容</label>
                <div class="layui-input-block" style="padding:20px">
                 {form:ueditor name="content" /}
                </div>
 
              </div>


             <div class="layui-form-item">
                <label class="layui-form-label" style="width:100px;">浏览量</label>
                <div class="layui-input-inline" style="width:100px">
                  <input type="text" name="hits" maxlength="8" lay-verify="hits" autocomplete="off" placeholder="" class="layui-input" value="0">
                </div>
              </div>


              <div class="layui-form-item">
                <label class="layui-form-label" style="width:100px;"></label>
                <div class="layui-input-inline">
                   <button class="layui-btn layui-btn-normal"  lay-submit lay-filter="form">确 定</button>
                   <button class="layui-btn layui-btn-primary"  onclick="javascript:history.go(-1);">返 回</button>
                </div>
              </div>


</form>
</div>

<script>
layui.use(['element', 'layer','form'], function(){
   var  element = layui.element, layer = layui.layer,form = layui.form;

 //监听提交
  form.on('submit(form)', function(data){
    $.post("{:url('info/add')}",$("form").serialize(),function(json){
           if(json.code == 0){
            qilecms.success(json.msg);
            setTimeout(function(){
            qilecms.back();
            },1000);
            }else{
              qilecms.error(json.msg);
            }
    });
    return false; //阻止表单跳转
  });
});

</script>
<script>

</script>
</body>

</html>